load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("@aio_npm//@bazel/jasmine:index.bzl", "jasmine_node_test")

js_library(
    name = "remark-package",
    srcs = glob(
        ["**/*.js"],
        exclude = ["**/*.spec.js"],
    ),
    visibility = ["//aio/tools/transforms:__subpackages__"],
    deps = [
        "@aio_npm//dgeni",
        "@aio_npm//remark",
        "@aio_npm//remark-html",
        "@aio_npm//unist-util-visit",
    ],
)

jasmine_node_test(
    name = "test",
    srcs = glob(["**/*.spec.js"]),
    deps = [
        ":remark-package",
    ],
)
